package threading;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-03-25
 * Time: 22:47
 */
public class ThreadExample_isDaemon {
    public static void main(String[] args) {
        Thread t = new Thread(()->{
            while (true) {
                System.out.println("hello t");
            }
        });
        t.setDaemon(true);
        t.start();
    }
}
